package com.owen.springboot.smartparkingms.module.app.controller;


import com.owen.springboot.smartparkingms.common.model.Result;
import com.owen.springboot.smartparkingms.module.app.entity.Car;
import com.owen.springboot.smartparkingms.module.app.service.ICarService;
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Constructor;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Owen
 * @since 2022-02-25
 */
@RestController
@RequestMapping("/app/car")
public class CarController {
    @Autowired
    private ICarService carService;

    /**
     * 列表
     */
    @PostMapping("list")
    public Result list(Car car){
        return carService.listPage(car);
    }


}
